<?php
	 $errorMsgArr = array(
		'required'=>__('This field is required'),
		'email'=>__('Please enter a valid email address.'),
	 	'url'=>__('Please enter a valid URL.'),
	 	'digits'=>__('Please enter only digits.')
	 	 );
	 $encodedErrorMsgs = json_encode($errorMsgArr);
	?>